package com.example.bookstore.beans;

import javax.faces.bean.ManagedBean;

@ManagedBean(name = "search")
public class SearchBean extends BaseBean {

	private String text = "";

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Override
	public String search() {
		System.out.println("SearchBean: search '" + text + "'");
		return "search";
	}
	
}
